package com.ht.module.ai.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;


/**
 * <p>
 * AI聊天会话表
 * </p>
 *
 * @author hejialun
 * @since 2025-06-09
 */

@TableName("ai_chat_session")
@Data
@Accessors(chain = true)
public class AiChatSession{

	@ApiModelProperty("主键ID")
    @TableId
    private String id;

	@ApiModelProperty("会话标题，如“关于注册流程的咨询”")
    private String title;

	@ApiModelProperty("会话备注或简介")
    private String description;

	@ApiModelProperty("最后一条消息时间")
    private LocalDateTime lastMessageTime;

	@ApiModelProperty("最后一条消息内容，可用于列表预览")
    private String lastMessageContent;

	@ApiModelProperty("存储模型上下文（可选）")
    private String memoryContext;

	@ApiModelProperty("逻辑删除标志（0-未删除，1-已删除）")
    @TableLogic
    private Integer delFlag;

	@ApiModelProperty("创建时间")
    private LocalDateTime createDate;

	@ApiModelProperty("创建人")
    private String createUser;

	@ApiModelProperty("修改时间")
    private LocalDateTime updateDate;

	@ApiModelProperty("修改人")
    private String updateUser;


}
